decisions = {
	cr_orthodox_pilgrimage = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 120

		potential = {
			is_playable = yes
			is_landed = yes
			religion = orthodox
			is_adult = yes
			NOT = { has_character_flag = cr_pilgrimage_active }
			NOT = { has_character_flag = cr_pilgrimage_crisis }
			NOT = { has_character_flag = cr_orthodox_pilgrimage_crisis }
			NOT = { has_character_flag = preparing_pilgrimage }
			NOT = {
				has_alternate_start_parameter = { key = religion_names value = random }
			}
		}

		allow = {
			war = no
			in_command = no
			prisoner = no
			NOT = { is_inaccessible_trigger = yes }
			NOT = { trait = incapable }
		}

		effect = { long_character_event = { id = cr_orthodox_pilgrimage.1 } }
		revoke_allowed = { always = no }

		ai_will_do = {
			factor = 0.1
			modifier = { factor = 3 trait = zealous }
			modifier = { factor = 0.5 trait = cynical }
			modifier = { factor = 0 NOT = { wealth = 50 } }
			modifier = { factor = 0 NOT = { age = 25 } }
		}
	}

	cr_abandon_orthodox_pilgrimage = {
		only_playable = yes
		is_high_prio = yes

		potential = {
			ai = no
			has_character_flag = cr_pilgrimage_active
			has_character_flag = cr_orthodox_pilgrimage_active
			NOT = { has_character_flag = cr_orthodox_pilgrimage_crisis }
		}

		allow = { always = yes }
		effect = { long_character_event = { id = cr_orthodox_punishment.10 } }
		revoke_allowed = { always = no }
		ai_will_do = { factor = 0 }
	}

	cr_seek_orthodox_pilgrimage_penance = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 1

		potential = {
			religion = orthodox
			has_character_flag = cr_orthodox_pilgrimage_crisis
			NOT = { has_character_flag = cr_orthodox_penance_pending }
			rightful_religious_head_scope = { is_alive = yes }
		}

		allow = {
			prisoner = no
			NOT = { trait = incapable }
		}

		effect = {
			set_character_flag = cr_orthodox_penance_pending
			save_event_target_as = cr_orthodox_pilgrimage_penitent
			rightful_religious_head_scope = {
				long_character_event = { id = cr_orthodox_punishment.30 }
			}
		}

		revoke_allowed = { always = no }
		ai_will_do = { factor = 1 }
	}

	cr_seek_orthodox_coronation = {
		only_playable = yes
		is_high_prio = yes
		ai_check_interval = 60

		potential = {
			religion = orthodox
			is_landed = yes
			higher_tier_than = DUKE
			NOT = { controls_religion = yes }
			NOT = { has_character_flag = cr_orthodox_crowned }
			NOT = { has_character_flag = cr_orthodox_coronation_pending }
		}

		allow = {
			is_adult = yes
			war = no
			prisoner = no
			NOT = { trait = incapable }
			NOT = { trait = excommunicated }
			rightful_religious_head_scope = { is_alive = yes }
		}

		effect = { long_character_event = { id = cr_orthodox.10 } }
		revoke_allowed = { always = no }

		ai_will_do = {
			factor = 1
			modifier = { factor = 2 trait = zealous }
			modifier = { factor = 0.5 trait = cynical }
			modifier = { factor = 0 NOT = { wealth = 50 } }
		}
	}

	cr_commission_sacred_iconography = {
		only_playable = yes
		ai_check_interval = 120

		potential = {
			OR = { religion = orthodox religion = iconoclast }
			is_adult = yes
			is_landed = yes
			NOT = { has_character_modifier = cr_orthodox_marian_teacher }
		}

		allow = {
			wealth = 50
			prisoner = no
			NOT = { trait = incapable }
		}

		effect = {
			if = {
				limit = { religion = orthodox }
				long_character_event = { id = cr_orthodox.30 }
			}
			else = { long_character_event = { id = cr_orthodox.31 } }
		}

		revoke_allowed = { always = no }
		ai_will_do = { factor = 0.5 modifier = { factor = 2 trait = zealous } }
	}
}
